package com.example.graduate.Bean;

import java.util.HashMap;
import java.util.Map;

public class Paperquestion {
    private Integer id;

    private Integer paperid;

    private String question;

    private String optiona;

    private String optionb;

    private String optionc;

    private String optiond;

    public String getExplains() {
        return explains;
    }

    public void setExplains(String explain) {
        this.explains = explain;
    }

    private String explains;

    private String answer;

    private String score;

    private String type="1";

    private boolean checked=false;


    public String getType() {
        return type;
    }

    public boolean isChecked() {
        return checked;
    }

    public Map<String, String> getOption() {
        return option;
    }

    private Map<String, String> option=new HashMap<>();

    public void setOption(){
        option.put("A",optiona);
        option.put("B",optionb);
        option.put("C",optionc);
        option.put("D",optiond);
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPaperid() {
        return paperid;
    }

    public void setPaperid(Integer paperid) {
        this.paperid = paperid;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question == null ? null : question.trim();
    }

    public String getOptiona() {
        return optiona;
    }

    public void setOptiona(String optiona) {
        this.optiona = optiona == null ? null : optiona.trim();
    }

    public String getOptionb() {
        return optionb;
    }

    public void setOptionb(String optionb) {
        this.optionb = optionb == null ? null : optionb.trim();
    }

    public String getOptionc() {
        return optionc;
    }

    public void setOptionc(String optionc) {
        this.optionc = optionc == null ? null : optionc.trim();
    }

    public String getOptiond() {
        return optiond;
    }

    public void setOptiond(String optiond) {
        this.optiond = optiond == null ? null : optiond.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score == null ? null : score.trim();
    }
}